xen.git
18 years ago[xend] Fix xm trigger command for inactive managed domains
kfraser@localhost.localdomain [Wed, 11 Jul 2007 09:54:06 +0000 (10:54 +0100)]
[xend] Fix xm trigger command for inactive managed domains
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoxend: Fix 'xm dumpcore' for inactive managed domains.
kfraser@localhost.localdomain [Wed, 11 Jul 2007 09:53:32 +0000 (10:53 +0100)]
xend: Fix 'xm dumpcore' for inactive managed domains.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years ago[xenstore] adds a -w (wide) flag to xenstore-ls to support seeing full
kfraser@localhost.localdomain [Wed, 11 Jul 2007 09:52:19 +0000 (10:52 +0100)]
[xenstore] adds a -w (wide) flag to xenstore-ls to support seeing full
contents of xenstore entries. There is a bit of code cleanup as well
(snprintf vs. sprintf), one formatting fix, and comments).

There is no change to the behavior of xenstore-ls without -w.

Signed-off-by: John Zulauf <john.zulauf@intel.com>
18 years ago[XM] Tools support for extensions of the Xen-API for managing security policies
kfraser@localhost.localdomain [Wed, 11 Jul 2007 09:49:43 +0000 (10:49 +0100)]
[XM] Tools support for extensions of the Xen-API for managing security policies

This patch adds a couple of new commands for using the Xen-API
extensions for security policies. Older tools are converted to support
going through the Xen-API for their operations rather than doing the
operations directly in their own code.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoMake QEMU consistently report write caching support for emulated IDE
kfraser@localhost.localdomain [Wed, 11 Jul 2007 09:48:15 +0000 (10:48 +0100)]
Make QEMU consistently report write caching support for emulated IDE
drives to fix a hang during SLES 9 HVM guest installation.

Without this, the SLES 9 installer kernels (32 and 64 bit) were
getting inconsistent information from QEMU as to whether the
(emulated) IDE drives support write caching (which they do).  So part
of the kernel thought write caching was enabled (and enabled the usage
of barrier writes) and part of it didn't, which triggered a bug in
which the same barrier write is submitted over and over again ...

Fixed by setting another bit in the WIN_IDENTIFY (IDE drive "identify"
command) response to indicate we really, truly support write caching.

Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
18 years agovmx: Stupid typo in BUG_ON() stmt.
kfraser@localhost.localdomain [Tue, 10 Jul 2007 22:42:13 +0000 (23:42 +0100)]
vmx: Stupid typo in BUG_ON() stmt.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agovmx: Never use physical addresses above 4GB for VMCS state on i386.
kfraser@localhost.localdomain [Tue, 10 Jul 2007 22:37:42 +0000 (23:37 +0100)]
vmx: Never use physical addresses above 4GB for VMCS state on i386.

Thsi requires special allocation of the vlapic regs page, but does let
us get rid of some top-half writes to a few VMCS fields.

Assert a few more facts about the VMX_BASIC_MSR.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoSimplify vmx host state setup code.
kfraser@localhost.localdomain [Tue, 10 Jul 2007 14:45:44 +0000 (15:45 +0100)]
Simplify vmx host state setup code.
Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agoxenoprof: Fix initialisation. Much can be done at boot-time, as
kfraser@localhost.localdomain [Tue, 10 Jul 2007 14:41:26 +0000 (15:41 +0100)]
xenoprof: Fix initialisation. Much can be done at boot-time, as
indicated by the fact that the low-level functiosn are marked
'__init'.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[libxen] C-bindings for the extensions of the Xen-API for managing security policies
kfraser@localhost.localdomain [Tue, 10 Jul 2007 13:57:04 +0000 (14:57 +0100)]
[libxen] C-bindings for the extensions of the Xen-API for managing security policies
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agohvm: Fix memcpy_words() asm in ioemu.
kfraser@localhost.localdomain [Tue, 10 Jul 2007 13:42:23 +0000 (14:42 +0100)]
hvm: Fix memcpy_words() asm in ioemu.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRe-factor e820 truncation code and reintroduce clipping for 32-on-64
kfraser@localhost.localdomain [Tue, 10 Jul 2007 10:10:38 +0000 (11:10 +0100)]
Re-factor e820 truncation code and reintroduce clipping for 32-on-64
guests (to 166GB).
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoXen API specification improvements.
kfraser@localhost.localdomain [Tue, 10 Jul 2007 09:22:41 +0000 (10:22 +0100)]
Xen API specification improvements.

Move the error list to be more prominent, and explicitly document
which generic error codes can be returned by all methods.

Mark host CPU flags/features return value as unspecified.

Document PERMISSION_DENIED.

Document error returns of session.login_with_password.

Signed-off-by: John Levon <john.levon@sun.com>
18 years agoxend: Fix xm pause/unpause for inactive managed domains.
kfraser@localhost.localdomain [Tue, 10 Jul 2007 09:15:01 +0000 (10:15 +0100)]
xend: Fix xm pause/unpause for inactive managed domains.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoxend: Count CPUs rather than relying on a static
kfraser@localhost.localdomain [Tue, 10 Jul 2007 09:13:16 +0000 (10:13 +0100)]
xend: Count CPUs rather than relying on a static
nodes/sockets/cores/threads relationship.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years agoxm: Improve help message for vif creation.
kfraser@localhost.localdomain [Tue, 10 Jul 2007 09:11:14 +0000 (10:11 +0100)]
xm: Improve help message for vif creation.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoSimplify Unisys ES7000 code in light of the fact we do not support
kfraser@localhost.localdomain [Tue, 10 Jul 2007 09:07:00 +0000 (10:07 +0100)]
Simplify Unisys ES7000 code in light of the fact we do not support
legacy boxes with very non-standard APIC setup.
From: Raj Subrahmanian <raj.subrahmanian@unisys.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxend: Missing last line from Xen_API security patch.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 18:28:54 +0000 (19:28 +0100)]
xend: Missing last line from Xen_API security patch.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoAdd accel option to vif xend config.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 17:10:48 +0000 (18:10 +0100)]
Add accel option to vif xend config.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
18 years agohvm: Clean ups and fix MSR access functions.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 17:04:23 +0000 (18:04 +0100)]
hvm: Clean ups and fix MSR access functions.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[Xen-API] Extension of the Xen-API for managing Xen Security Policies
kfraser@localhost.localdomain [Mon, 9 Jul 2007 13:51:44 +0000 (14:51 +0100)]
[Xen-API] Extension of the Xen-API for managing Xen Security Policies

This patch implements extensions for managing security policies in
xend. The XSPolicy and ACMPolicy classes provide the interface for the
Xen-API and implement functionality for setting, updating and
activating of a Xen security policy as well as labeling of virtual
machines and resources such as block devices. Labeling of network
devices will follow.

The acmpolicy class implements a compiler for translating an XML
policy into their binary format and provides functionality for
comparing a current policy against a new one when changing/updating a
policy.

The xspolicyadmin class administers the policy of the system.

Some of the xend-internal code deals with transforming the labeling
information from the S-Expression format into the new Xen-API
format. This is similar to much of the other code that is already
there.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoIntroduce 'bootscrub' boolean cmdline option. Default on.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 13:30:46 +0000 (14:30 +0100)]
Introduce 'bootscrub' boolean cmdline option. Default on.

no-bootscrub will disable boot-time RAM scrubbing, speeding up boot
time significantly on big-memory systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAlso allow boolean cmdline params to be inverted in two other ways.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 13:29:53 +0000 (14:29 +0100)]
Also allow boolean cmdline params to be inverted in two other ways.

Now, a standard boolean (e.g., watchdog) can be inverted in three
ways:
 1. no-watchdog
 2. watchdog=no
 3. watchdog=off

Stacked inversions cancel each other: no-watchdog=no turns on the
watchdog.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAllow inversion of boolean cmdline parameters with 'no-' prefix.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 13:13:56 +0000 (14:13 +0100)]
Allow inversion of boolean cmdline parameters with 'no-' prefix.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRemove no-pv-compat cmdline option.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 13:06:22 +0000 (14:06 +0100)]
Remove no-pv-compat cmdline option.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoAdd support for building -mm, -tip and -rc upstream trees.
Ian Campbell [Mon, 9 Jul 2007 11:04:20 +0000 (12:04 +0100)]
Add support for building -mm, -tip and -rc upstream trees.

(note that not all of those contains Xen support just yet and that a
native kernel will be silently built in that case.)

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoAdd support to the tarball source type for using the ketchup tool.
Ian Campbell [Mon, 9 Jul 2007 10:57:07 +0000 (11:57 +0100)]
Add support to the tarball source type for using the ketchup tool.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoAdd hooks for a script to update kernel configuration after tree has been
Ian Campbell [Mon, 9 Jul 2007 10:29:39 +0000 (11:29 +0100)]
Add hooks for a script to update kernel configuration after tree has been
prepared. This is to support upstream sources which do not enable Xen in their
default configurations.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoRemove .hgskip. This was an ancient mercurial patch which was never
Ian Campbell [Mon, 9 Jul 2007 10:29:30 +0000 (11:29 +0100)]
Remove .hgskip. This was an ancient mercurial patch which was never
taken upstream.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agoVMX: Fix function return code when a GP fault is generated on CR accesses.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 08:47:20 +0000 (09:47 +0100)]
VMX: Fix function return code when a GP fault is generated on CR accesses.
Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agoFix xm save command for a inactive managed domain.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 08:41:45 +0000 (09:41 +0100)]
Fix xm save command for a inactive managed domain.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoVMX: No VMExits on SYSENTER MSR accesses since VMX already has VMCS
kfraser@localhost.localdomain [Mon, 9 Jul 2007 08:39:51 +0000 (09:39 +0100)]
VMX: No VMExits on SYSENTER MSR accesses since VMX already has VMCS
fields for both host and guest state.
Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agoBetter error message for 'xm sysrq' on inactive domain.
kfraser@localhost.localdomain [Mon, 9 Jul 2007 08:38:35 +0000 (09:38 +0100)]
Better error message for 'xm sysrq' on inactive domain.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoSVM: Sync with VMX code changes.
Keir Fraser [Sat, 7 Jul 2007 10:21:34 +0000 (11:21 +0100)]
SVM: Sync with VMX code changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agovms: A cleanup to vmx.c:
Keir Fraser [Sat, 7 Jul 2007 10:08:57 +0000 (11:08 +0100)]
vms: A cleanup to vmx.c:
1) move some functions from vmx.h to vmx.c, since they are private.
2) adjust vmx_set_cr0 handling.
3) majorly coding style tidying.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoSpecify -fno-strict-aliasing in root build config file.
Keir Fraser [Sat, 7 Jul 2007 09:31:15 +0000 (10:31 +0100)]
Specify -fno-strict-aliasing in root build config file.

Fixes correctness issues with xenstored and gcc-4.2.

Original patch by Charles Coffing <ccoffing@novell.com>

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoMerge with PPC tree.
Keir Fraser [Sat, 7 Jul 2007 09:09:51 +0000 (10:09 +0100)]
Merge with PPC tree.

18 years ago[POWERPC][XEN] Stop sharing the MPIC between dom0 and Xen.
Hollis Blanchard [Fri, 6 Jul 2007 21:25:10 +0000 (16:25 -0500)]
[POWERPC][XEN] Stop sharing the MPIC between dom0 and Xen.
Xen is now the sole owner of the MPIC. Requires Xen Linux 2.6.18.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Increase foreign mapping size to accommodate Linux 2.6.18 usage.
Hollis Blanchard [Fri, 6 Jul 2007 21:21:39 +0000 (16:21 -0500)]
[POWERPC][XEN] Increase foreign mapping size to accommodate Linux 2.6.18 usage.
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC][XEN] Quiet time debug messages.
Hollis Blanchard [Fri, 6 Jul 2007 21:19:36 +0000 (16:19 -0500)]
[POWERPC][XEN] Quiet time debug messages.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[XEN][POWERPC] Merge with xen-unstable.hg.
Hollis Blanchard [Fri, 6 Jul 2007 21:01:04 +0000 (16:01 -0500)]
[XEN][POWERPC] Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[PPC] Add missing '{' in conditional statement.
kfraser@localhost.localdomain [Fri, 6 Jul 2007 15:34:51 +0000 (16:34 +0100)]
[PPC] Add missing '{' in conditional statement.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
18 years agohvm: Add global default keymap setting
kfraser@localhost.localdomain [Fri, 6 Jul 2007 15:16:57 +0000 (16:16 +0100)]
hvm: Add global default keymap setting

Add global default keymap setting to be used when a VM does not have
a keymap configuration set.

Signed-off-by: Pat Campbell <plc@novell.com>
18 years agoExtended the physinfo sysctl to export NUMA cpu_to_node topology info.
kfraser@localhost.localdomain [Fri, 6 Jul 2007 15:12:07 +0000 (16:12 +0100)]
Extended the physinfo sysctl to export NUMA cpu_to_node topology info.
Print this in 'xm info'.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRevert 15471:7ac7f147241405af83e7a9d748cf7b01279734fc
kfraser@localhost.localdomain [Fri, 6 Jul 2007 14:01:20 +0000 (15:01 +0100)]
Revert 15471:7ac7f147241405af83e7a9d748cf7b01279734fc

Block-device specifiers in ioemu can contain colons, so skipping
always past the first colon is not a good idea. Better solutions are
in the pipeline to solve the blktap issues.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agodocs: update xm man page
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:45:02 +0000 (14:45 +0100)]
docs: update xm man page

- Fixed description of "Mem" column in "xm list" output.
- Added a bit of text for the credit scheduler.
- Described the --force option to block-detach.
- Made formatting and spelling more consistent.
- etc...

Signed-off-by: Charles Coffing <ccoffing@novell.com>
18 years ago[ACM] Support for initial unicode handling of strings in policies.
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:43:51 +0000 (14:43 +0100)]
[ACM] Support for initial unicode handling of strings in policies.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoExport debugger attached state to xc API.
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:42:55 +0000 (14:42 +0100)]
Export debugger attached state to xc API.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
18 years agoxend: Fix xm block/network-attach command for inactive managed domain
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:41:05 +0000 (14:41 +0100)]
xend: Fix xm block/network-attach command for inactive managed domain
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoxend: Fix op_domain_sched_credit_set() in SrvDomain.py
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:39:21 +0000 (14:39 +0100)]
xend: Fix op_domain_sched_credit_set() in SrvDomain.py
This patch adds "cap" into op_domain_sched_credit_set().
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agovmx: Fix a typo.
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:38:22 +0000 (14:38 +0100)]
vmx: Fix a typo.
Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agohvm: Fix vnc keymap for Japanese keyboards.
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:37:47 +0000 (14:37 +0100)]
hvm: Fix vnc keymap for Japanese keyboards.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Junko Ichino <ichino.junko@jp.fujitsu.com>
18 years agoUse short name format when reference to vcpu vmx union member.
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:36:34 +0000 (14:36 +0100)]
Use short name format when reference to vcpu vmx union member.
Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agoImprove xm sched-credit command for inactive managed domains
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:34:54 +0000 (14:34 +0100)]
Improve xm sched-credit command for inactive managed domains
Allows to change the scheduler parameters of inactive managed domains.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agohvm: Allow blktap to be able to be booted as system volume for PV-on-HVM
kfraser@localhost.localdomain [Fri, 6 Jul 2007 13:22:59 +0000 (14:22 +0100)]
hvm: Allow blktap to be able to be booted as system volume for PV-on-HVM

When blktap was booting system volume, PV-on-HVM domain was not able
to be  started.

The configuration file is specified as follows.
disk = [ 'tap:aio:/xen/test/rhel5ga_full.img,hda,w' ]

The error occurred by the initialization of system volume in qemu-dm.
qemu: could not open hard disk image 'aio:/xen/test/rhel5ga_full.img'

Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[HVM] ROMBIOS: reboot when we see Ctrl+Alt+Del
Tim Deegan [Fri, 6 Jul 2007 10:17:01 +0000 (11:17 +0100)]
[HVM] ROMBIOS: reboot when we see Ctrl+Alt+Del
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] Shadow: avoid xen crash if guest uses special memory for pagetables
Tim Deegan [Thu, 5 Jul 2007 13:46:13 +0000 (14:46 +0100)]
[HVM] Shadow: avoid xen crash if guest uses special memory for pagetables
(just crash the guest and don't do any more PTE propagations).
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years ago[HVM] update Etherboot ROM: new version, stricter DHCP compliance.
Tim Deegan [Thu, 5 Jul 2007 09:19:25 +0000 (10:19 +0100)]
[HVM] update Etherboot ROM: new version, stricter DHCP compliance.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agovmx: Write back modified interruptibility-info in enable_intr_window().
kfraser@localhost.localdomain [Wed, 4 Jul 2007 09:34:18 +0000 (10:34 +0100)]
vmx: Write back modified interruptibility-info in enable_intr_window().
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm vmx: Support 'virtual NMI' feature of VMX.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 17:46:00 +0000 (18:46 +0100)]
hvm vmx: Support 'virtual NMI' feature of VMX.
Signed-off-by: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Fix event-channel destruction.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 16:22:17 +0000 (17:22 +0100)]
xen: Fix event-channel destruction.

Lots of churn to fix a couple of bugs:

 1. If we tried to close an interdomain channel, and the remote domain
    is being destroyed, we immediately return success. But the remote
    domain will place our port in state 'unbound', not 'free'. Hence
    the port is effectively leaked.

 2. If two domains are being destroyed at the same time, and share an
    interdomain channel, the second to attempt the close may
    dereference an invalid domain pointer. Aiee!

Doing som ework to be able to destroy event-channel context much
earlier in domain death was the civilised thing to do.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[x86/32] Support two byte CMOVcc opcodes in 4G segment fixup.
Ian Campbell [Tue, 3 Jul 2007 16:04:50 +0000 (17:04 +0100)]
[x86/32] Support two byte CMOVcc opcodes in 4G segment fixup.

These are present in Debian Etch's libc6-i686 package.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agox86: Clean up do_iret() hypercall.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 15:02:31 +0000 (16:02 +0100)]
x86: Clean up do_iret() hypercall.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxenstore: Remove broken and unmaintained test code.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 14:51:59 +0000 (15:51 +0100)]
xenstore: Remove broken and unmaintained test code.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoRemove over-zealous assertion.
Steven Hand [Tue, 3 Jul 2007 14:49:16 +0000 (15:49 +0100)]
Remove over-zealous assertion.

Signed-off-by: Steven Hand <steven@xensource.com>
18 years ago[XEN] Fix p2m->shadow callback to pass the mfn being written to
Tim Deegan [Tue, 3 Jul 2007 13:57:59 +0000 (14:57 +0100)]
[XEN] Fix p2m->shadow callback to pass the mfn being written to
as well as the pointer and contents.  This was being calculated but
got disconnected from its use when the p2m and shadow functions were
separated.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
18 years agoxen: Fix my changes to I/O-region-finding routine.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 12:44:04 +0000 (13:44 +0100)]
xen: Fix my changes to I/O-region-finding routine.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxen: Remove useless check from dom0 builder.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 11:04:03 +0000 (12:04 +0100)]
xen: Remove useless check from dom0 builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agox86: Improve e820 scanning for all I/O regions.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 11:02:31 +0000 (12:02 +0100)]
x86: Improve e820 scanning for all I/O regions.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agohvm vlapic: Fix one_shot argument passed to create_periodic_time().
kfraser@localhost.localdomain [Tue, 3 Jul 2007 10:47:08 +0000 (11:47 +0100)]
hvm vlapic: Fix one_shot argument passed to create_periodic_time().
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
18 years agox86-64: clear DF for kernel when forwarding syscall.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 10:44:13 +0000 (11:44 +0100)]
x86-64: clear DF for kernel when forwarding syscall.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agox86-64: bump STACK_SIZE to 32 so that trampoline and IST stacks fit
kfraser@localhost.localdomain [Tue, 3 Jul 2007 10:41:25 +0000 (11:41 +0100)]
x86-64: bump STACK_SIZE to 32 so that trampoline and IST stacks fit
without undue squeezing.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
18 years agoxen: Fix kexec_crash_area reservation/allocation.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 10:24:40 +0000 (11:24 +0100)]
xen: Fix kexec_crash_area reservation/allocation.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agomerge
Ian Campbell [Tue, 3 Jul 2007 09:31:13 +0000 (10:31 +0100)]
merge

18 years ago[32on64 kexec] Add an explicit local branch after re-enabling paging
Ian Campbell [Tue, 3 Jul 2007 09:30:15 +0000 (10:30 +0100)]
[32on64 kexec] Add an explicit local branch after re-enabling paging
in 32 bit mode.

While it doesn't appear to be strictly required the documentation
calls for it. Thanks to Edwin Zhai for bringing the omission to my
attention.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agovmx: Use per-cpu vmcs pointer to avoid unnecessary vmcs loading in
kfraser@localhost.localdomain [Tue, 3 Jul 2007 09:29:55 +0000 (10:29 +0100)]
vmx: Use per-cpu vmcs pointer to avoid unnecessary vmcs loading in
vmx_do_resume().
Signed-off-by: Eric Liu <eric.e.liu@intel.com>
18 years agoxend: Save modified scheduler params of managed guests to config.sxp.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 09:21:21 +0000 (10:21 +0100)]
xend: Save modified scheduler params of managed guests to config.sxp.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoxendomains: Better sanity checking of potetntial save records.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 09:12:22 +0000 (10:12 +0100)]
xendomains: Better sanity checking of potetntial save records.
Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
18 years agovmxassist: Decode mov instruction in protected to real mode in vmxassist.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 09:08:34 +0000 (10:08 +0100)]
vmxassist: Decode mov instruction in protected to real mode in vmxassist.
Also some clean up.
Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agohvm: Fix keymap for Windows keys.
kfraser@localhost.localdomain [Tue, 3 Jul 2007 09:06:48 +0000 (10:06 +0100)]
hvm: Fix keymap for Windows keys.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Junko Ichino <ichino.junko@jp.fujitsu.com>
18 years agoFix 15435:ab95b9764b20.
Ian Campbell [Mon, 2 Jul 2007 07:42:13 +0000 (08:42 +0100)]
Fix 15435:ab95b9764b20.

The changeset did not consider about ":cdrom" and "ioemu:"
of a disk definition.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoUse 32bit operand and address during VMXAssist protected to real.
Keir Fraser [Sun, 1 Jul 2007 23:24:59 +0000 (00:24 +0100)]
Use 32bit operand and address during VMXAssist protected to real.
Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agoxm: Fix xm block-detach error message duplication.
Keir Fraser [Sun, 1 Jul 2007 21:25:27 +0000 (22:25 +0100)]
xm: Fix xm block-detach error message duplication.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoxm: Fix a typo for xm network-detach.
Keir Fraser [Sun, 1 Jul 2007 21:23:16 +0000 (22:23 +0100)]
xm: Fix a typo for xm network-detach.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoACM: Fix a problem with the boot option parser.
Keir Fraser [Sun, 1 Jul 2007 21:21:58 +0000 (22:21 +0100)]
ACM: Fix a problem with the boot option parser.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
18 years agoMake network-bridge fail on NFS or iscsi root.
Keir Fraser [Sun, 1 Jul 2007 21:20:46 +0000 (22:20 +0100)]
Make network-bridge fail on NFS or iscsi root.
Since setting up bridging involves bringing down the network interface,
bridging clearly isn't compatible with the likes of NFS or iSCSI root.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
18 years agoRemove unused VMXAssist test code.
Keir Fraser [Sun, 1 Jul 2007 21:18:04 +0000 (22:18 +0100)]
Remove unused VMXAssist test code.
Signed-off-by: Xin Li <xin.b.li@intel.com>
18 years agoxendomains: Ignore 'lost+found' when finding saved dom images.
Keir Fraser [Sun, 1 Jul 2007 21:16:41 +0000 (22:16 +0100)]
xendomains: Ignore 'lost+found' when finding saved dom images.
Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
18 years agoxend: Pass information to user when failing migrate due to PCI dev.
Keir Fraser [Sun, 1 Jul 2007 21:10:38 +0000 (22:10 +0100)]
xend: Pass information to user when failing migrate due to PCI dev.

When failing a migration / save due to the domain owning a PCI device
make sure that we tell the user what went wrong!

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
18 years agoxend: Don't allow migrate with assigned PCI devs.
Keir Fraser [Sun, 1 Jul 2007 21:10:13 +0000 (22:10 +0100)]
xend: Don't allow migrate with assigned PCI devs.

This can potentially cause a whole machine crash, which I think has
been seen in the wild.  The case in the wild was caused by xendomains
auto-resuming domains on reboot, so it wasn't even operator error.

There's no sane way to migrate or suspend domains with PCI devs,
so I disallow it completely.

Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
18 years agoAdd a duplication definition check for devices.
Ian Campbell [Fri, 29 Jun 2007 13:38:18 +0000 (14:38 +0100)]
Add a duplication definition check for devices.

This patch adds a duplication definition check for devices.
It checks the following definitions.
 - vbd : uname and device name
 - vif : mac

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
18 years agoxend: Fix irq-permissions setting during domain creation.
Keir Fraser [Thu, 28 Jun 2007 19:35:50 +0000 (20:35 +0100)]
xend: Fix irq-permissions setting during domain creation.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoFix fixup of invalid PTE writes, broken by 13392:0fd65225e4c6.
Ian Campbell [Thu, 28 Jun 2007 17:40:20 +0000 (18:40 +0100)]
Fix fixup of invalid PTE writes, broken by 13392:0fd65225e4c6.

By the time we test if addr is the upper word it has already been
aligned to the 8 byte pte size.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
18 years agohvm: Destroy timers early during domain death.
Keir Fraser [Wed, 27 Jun 2007 21:20:17 +0000 (22:20 +0100)]
hvm: Destroy timers early during domain death.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoMore getcpuinfo sysctl cleanup.
Keir Fraser [Wed, 27 Jun 2007 20:43:43 +0000 (21:43 +0100)]
More getcpuinfo sysctl cleanup.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoBy default allow differences between Xen and XenLinux public headers.
Keir Fraser [Wed, 27 Jun 2007 20:28:19 +0000 (21:28 +0100)]
By default allow differences between Xen and XenLinux public headers.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoSmall sysctl cleanups.
Keir Fraser [Wed, 27 Jun 2007 20:27:51 +0000 (21:27 +0100)]
Small sysctl cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agoxenconsoled: improve robustness of logfile handling
Keir Fraser [Wed, 27 Jun 2007 20:05:54 +0000 (21:05 +0100)]
xenconsoled: improve robustness of logfile handling

Check the 'log_reload' on every iteration of the select() loop, not just when
select() returns EINTR. This is because the log reload signal may have
iterrupted a syscall other than select & thus without this change  we
might miss the reload signal.  The second change makes us process the
hypervisor logs on every iteration of the loop, not just upon timeouts.
This is because if a guest VM were consistently sending some log message
and < 1 second period, the select() would never hit the 1 second timeout
and thus never process the HV logs.

Thanks to Markus Armbruster for pointing out both these edge cases

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
18 years agoAdd new sysctl to return runtime information about physical CPU utilization.
Steven Hand [Wed, 27 Jun 2007 20:01:08 +0000 (21:01 +0100)]
Add new sysctl to return runtime information about physical CPU utilization.

Signed-off-by: Steven Hadn <steven@xensource.com>
18 years agovmx: Exclude VMX_PROCBASED_CTL2 from set of MSRs a VMX guest is allowd
Keir Fraser [Wed, 27 Jun 2007 19:56:25 +0000 (20:56 +0100)]
vmx: Exclude VMX_PROCBASED_CTL2 from set of MSRs a VMX guest is allowd
to access.
Signed-off-by: Keir Fraser <keir@xensource.com>